#!/bin/sh

mkdir -p ORACLE_ADMIN_DIR/adump
mkdir -p ORACLE_ADMIN_DIR/bdump
mkdir -p ORACLE_ADMIN_DIR/cdump
mkdir -p ORACLE_ADMIN_DIR/dpdump
mkdir -p ORACLE_ADMIN_DIR/pfile
mkdir -p ORACLE_ADMIN_DIR/udump
mkdir -p ORACLE_ADMIN_DIR/cfgtoollogs/dbca/ORACLE_HOME_NAME
mkdir -p ORACLE_HOME/dbs
mkdir -p ORACLE_HOME/flash_recovery_area
mkdir -p ORACLE_TS_DIR
mkdir -p ORACLE_REDO1_DIR
mkdir -p ORACLE_REDO2_DIR
mkdir -p ORACLE_ARCH_DIR/ORACLE_HOME_NAME/flash_recovery_area
mkdir -p ORACLE_ARCH_DIR/ORACLE_HOME_NAME/archivelog
ORACLEHOME
ORACLE_SID=ORACLE_HOME_NAME; export ORACLE_SID
echo You should Add this entry in the /etc/oratab: ORACLE_HOME_NAME:ORACLE_HOME:Y
ORACLE_HOME/bin/sqlplus /nolog @ORACLE_ADMIN_DIR/scripts/ORACLE_HOME_NAME.sql
